<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Document</title>
</head>
<body>
<div></div>

<script>
    const div = window.document.querySelector("div");
    div.innerHTML = `<h1>hello word</h1>`
</script>
</body>
</html>